<template>
	<view>
		<uni-nav-bar :title="$t('privacy')" :fixed="true" :border="false" color="var(--theme-text-color)" backgroundColor="var(--theme-color)">
		</uni-nav-bar>
		<view class="icon-xl circle flex-center back-btn" style="position: fixed;top: 5px;left: 16px;z-index: 100;" @click="backPage">
			<uni-icons type="arrow-left" size="24" color="#fff"></uni-icons>
		</view>
		<!-- 隐私政策内容 -->
		<view class="p-lr-16 mt10" v-html="info.content">
			
		</view>
	</view>
</template>

<script setup>
import { onMounted, ref } from 'vue';
import { getPolicy } from '/api/index.js'
const info = ref('')
onMounted(()=>{
	getPolicy().then(res =>{
		info.value = res.data
	})
})
const backPage = () =>{
	// 返回上一页
	// uni.navigateBack({
	//   delta: 1 // 默认值为1，表示返回上一页
	// });
	history.back()
}

</script>

<style>

</style>
